package com.zmn.plat.dubbo.interfaces.file;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.zmn.common.dto2.ResponseDTO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 文件上传 文件上传路经：https://img1.xiujiadian.com/dev/sm/order/04481230.jpg
 *
 * @author: LuJia
 * @version: v1.0
 * @since: 2020/5/22 19:45
 */
@Api(value = "文件上传服务", tags = {"文件上传服务"})
public interface FileUploadRemoteService {

    /**
     * 上传文件
     *
     * @param directory
     *            文件目录
     * @param fileName
     *            文件名
     * @param bytes
     *            上传图片字节数
     * @return
     */
    @ApiOperation(value = "上传文件")
    ResponseDTO<String> uploadFile(@NotBlank String directory, @NotBlank String fileName, @NotNull byte[] bytes);
}
